package club.samubird.simpledatahandlekit.db.demo;

import club.samubird.simpledatahandlekit.db.core.JdbcExtensions;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author sam
 * @date 2019/11/5 15:00
 * @description 功能描述
 */
@Service
@Slf4j
public class JdbcDemo {

	@Autowired
	private JdbcExtensions jdbcExtensions;

	public void saveOrUpdate(List<Map> dataList, String tableName) {
		int[] ints = jdbcExtensions.batchSaveOrUpdate(dataList, tableName);
	}
}
